package com.cxx.food.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonView;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Getter
@Setter
@JsonView(PlainView.class)
public class RecordDto {
    @Schema(description = "id")
    @JsonView(ReadView.class)
    private Long id;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "分类")
    @JsonView(ReadView.class)
    private String category;

    @Schema(description = "完成人")
    @JsonView(ReadView.class)
    private Long person;

    @Schema(description = "完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date date;

    @Schema(description = "成果图片")
    private String imageUrl;
}
